package com.kili.recommend.data.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
import java.util.Set;

/**
 * 自定义配置
 *
 * @author fenny
 * @since 2019/08/28
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "custom")
public class CustomConfig {

    /**
     * 采集指定国家与事件
     */
    private Map<String, Set<String>> gatherCountryAndEvent;

    /**
     * 每条消息有效期ms
     */
    private int clearCacheInterval = 20000;

    /**
     * 第三方存储位置
     */
    private String recommendPath = "recommend/recommendations.txt";


}
